<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11_盒子模型</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            height: 100vh;
        }
        .container{
            width: 100%;
            height: 100%;
            background-image:url('https://img0.baidu.com/it/u=3410585479,3096651065&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800') ;
            background-color: pink;
            /* background-position: 500px 500px; */
            background-size: cover;
            background-repeat: no-repeat;
            /* background-repeat: no-repeat;  不平铺*/
        }
    </style>
</head>
<body>
    <div class="container"></div>
</body>
</html>